@charset "utf-8";
@import "color";
@import "theme";
@import "model-beta";

// 评论及回复
.contentitem{
    vertical-align: top;
    width: 100%;
    .name{
        width: 78px;
        @include Line(1);
        font-size: 12px;
        -webkit-user-select: none;
    }
    .userimg{
        display: inline-block;
        width: 78px;
        margin-right: 12px;
        vertical-align: top;
    }
    .single{
        div{
            color: $themeColor;
            @include rotate(-90);
        }
        padding-top: 11px;
        vertical-align: top;
        display: inline-block;
    }
    .contentbox{
        vertical-align: top;
        display: inline-block;
        padding: 5px 11px;
        width: 633px;
        @include radius(5);
        @include newLine;
        margin-left: -1px;
        background-color: $themeColor;

        .inneritem{
            color: $fontColor;
            padding: 6px 0;
            .time{
                color: $fontColor;
                width: 50%;
                display: inline-block;
            }
            .method{
                display: inline-block;
                width: 50%;
                text-align: right;
                a{
                    margin-left: 10px;
                    color: $fontColor;
                    &:hover{
                        text-decoration: underline;
                        color: ($fontColor,10%);
                    }
                }
            }
        }
        .replyitem{
            padding: 6px 0;
            text-align: right;
            .name{
                color: $fontColor;
                width: 78px;
                @include Line(1);
            }
            .replyimg{
                display: inline-block;
                width: 78px;
                vertical-align: top;
                margin-left: 12px;
            }
            .single2{
                div{
                    color: $btnHover;
                    @include rotate(90);
                }
                padding-top: 5px;
                vertical-align: top;
                display: inline-block;
            }
            .replytext{
                color: $fontColor;
                text-align: left;
                vertical-align: top;
                display: inline-block;
                padding: 11px 11px;
                max-width: 510px;
                @include radius(5);
                @include newLine;
                margin-right: -1px;
                background-color: $btnHover;
                .time{
                    padding-top: 12px;
                    color: $fontColor;
                }
            }
        }
        .inputbox{
            width: 100%;
            height: 0px;
            overflow: hidden;
            @include comic_1(0.3,0);
            &.focus{
                height: 70px;
            }
            .inputtext{
                width: 100%;
                resize: none;
                border: 1px solid $btnHover;
                height: 40px;
                line-height: 20px;
                color: $silver;
                margin-bottom: 5px;
            }
            a{
                color: $fontColor;
                padding-left: 10px;
                &:hover{
                    text-decoration: underline;
                }
            }
        }
    }
}

// 商品贴a类
.goodstile_a{
    width: 260px;
    padding: 5px 5px;
    margin: 10px 0;
    background-color: $white;
    .goodsimg{
        display: inline-block;
        vertical-align: top;
        width: 75px;
        height: 75px;
        margin-right: 15px;
        img{
            width: 75px;
            height: 75px;
        }
    }
    .goodsinfo{
        display: inline-block;
        vertical-align: top;
        width: 170px;
        .infoitem{
            height: 25px;
            line-height: 25px;
            @include Line(1);
            &.name:hover{
                cursor: pointer;
                color: $red;
            }
            &.price{
                color: $red;
            }
        }
    }
}

// 分类标签
.tilebox{
    width: 280px;
    @include newLine();
    .tileitem{
        padding: 8px;
        cursor: pointer;
        max-width: 100px;
        @include Line(1);
        margin-right: 10px;
        margin-bottom: 10px;
        background-color: $white;
        display: inline-block;
        color: $black;
        @include comic_1(0.3,0);
        &:hover{
            background-color: $themeColor;
            color: $fontColor;
        }
    }
}

// 商品贴b类
.goodstile_b{
    padding: 15px;
    background-color: $white;
    margin-bottom: 15px;
    .goodsimg{
        width: 240px;
        height: 240px;
        position: relative;
        img{
            width: 240px;
            height: 240px;
        }
        .time{
            position: absolute;
            width: 240px;
            height: 51px;
            bottom: 0;
            .timeitem{
                vertical-align: top;
                display: inline-block;
                width: 51px;
                height: 51px;
                margin-right: 12px;
                background-color: rgba($silver,0.6);
                color: $white;
                text-align: center;
                &.second{
                    margin-right: 0;
                }
                .num{
                    font-size: 15px;
                    line-height: 26px;
                    font-weight: bold;
                }
                .type{
                    line-height: 25px;
                }
            }
        }
    }
    .goodsinfo{
        width: 100%;
        padding-top: 15px;
        .infoitem{
            @include newLine;
            line-height: 20px;
            .name:hover{
                color: $red;
            }
            .nowprice{
                color: $red;
                font-weight: bold;
                font-size: 15px;
            }
            .oldprice{
                margin-left: 5px;
                color: $silver;
                text-decoration: line-through;
            }
        }
    }
}

// 商品贴c类
.goodstile_c{
    display: inline-block;
    vertical-align: top;
    position: relative;
    width: 218px;
    height: 288px;
    margin-right: 35px;
    margin-bottom: 20px;
    .goodsimg{
        width: 200px;
        height: 200px;
        img{
            width: 200px;
            height: 200px;
        }
    }
    .infobox{
        width: 100%;
        .infoitem{
            width: 100%;
            line-height: 35px;
            @include Line(1);
            .price{
                font-size: 14px;
                color: $red;
            }
            .name:hover{
                color: $red;
            }
        }
    }
    .btnbox{
        width: 100%;
        height: 0;
        overflow: hidden;
        line-height: 40px;
        @include comic_1(0.3,0);
        .itemcart,.itemfile{
            cursor: pointer;
            width: 15px;
            display: inline-block;
            vertical-align: top;
            margin-right: 15px;
            overflow: hidden;
            padding: 0 10px;
            background-color: $themeColor;
            margin-left: 0;
            @include comic_1(0.3,0);
            &:hover{
                background-color: $btnHover;
                width: 105px;
                button{
                    background-color: $btnHover;
                }
            }
        }
        .itemfile{
            &:hover{
                width: 90px;
            }
        }
        button{
            position: relative;
            z-index: 1;
            @include comic_1(0.3,0);
            // padding: 0 10px;
            padding: 0;
            border: 0;
            height: 30px;
            // margin-right: 15px;
            letter-spacing: 2px;
            line-height: 30px;
            background-color: $themeColor;
            color: $fontColor;
        }
    }
    .inner{
        background-color: $white;
        width: 200px;
        padding: 9px;
        @include comic_1(0.3,0);
        @include shadow(0,0,0,0,$white);
    }
    &:hover{
        z-index: 99;
            .inner{
                @include shadow(0,3px,10px,0,$silver);
                .btnbox{
                    height: 40px;
                }
            }
        
    }
}
